
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
class Agreement_Controller extends CI_Controller {
 
    function __construct()
    {
        parent::__construct();
        $this->load->database();
        $this->load->helper('url');
        $this->load->library('grocery_CRUD');
    }
 
    public function index()
    {
        
    }
 
    public function managementAgreements()
    {
        $crud = new grocery_CRUD();
        $crud->set_theme('datatables');
        $crud->set_table('CONVENIO');
        $crud->display_as('CON_OBSERVACIONES','OBSERVACIONES')
            ->display_as('CON_VALORACORDADO','VALOR ACORDADO');
        $crud->set_subject('Convenio');
        $crud->required_fields('CON_OBSERVACIONES','CON_VALORACORDADO');
        $output = $crud->render();
        $this->generateOutput($output);
    }
 
   
    function generateOutput($output = null)
    {
        $this->load->view('our_template.php',$output);    
    }
}
 